package com.zyd.shiro.persistence.beans;

import com.zyd.shiro.business.annotation.FieldValue;
import com.zyd.shiro.business.annotation.TitleValue;
import com.zyd.shiro.business.enums.MenuEnum;
import com.zyd.shiro.framework.object.AbstractDataDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author jobob
 * @since 2020-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TitleValue(name = "盘点",nume = MenuEnum.MODULE,code = "inventory")
public class PakInventory extends AbstractDataDO {

    @FieldValue(name = "编码")
    private String unicode;

    @FieldValue(name = "名称")
    private String name;

    @FieldValue(name = "类型")
    private Integer type;

    @FieldValue(name = "状态")//1未开始 2盘点中 3已完成 4已终止
    private Integer status;

    @FieldValue(name = "盘点开始时间")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date startDate;

    @FieldValue(name = "盘点结束时间")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endDate;

    @FieldValue(name = "位置")
    private Long location;

    @FieldValue(name = "资产状态")
    private Integer asset;

    @FieldValue(name = "资产分类")
    private Long categories;

    @FieldValue(name = "资产管理员")
    private Long manager;

    @FieldValue(name = "入库开始时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    @FieldValue(name = "入库结束时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date finishTime;




}
